Platform Explorer / Nuxeo Platform 2023.21

Operation javascript.RenderPdf (javascript.RenderPdf)

Description

Render a document with a given template and converts it to PDF.
Operation id javascript.RenderPdf
Category javascript
Label javascript.RenderPdf
Requires
Since

Parameters

Name Description Type Required Default value
templateName string no  
attach boolean no  
templateData string no  

Signature

Inputs document
Outputs blob

Implementation Information

Implementation Class Class: org.nuxeo.automation.scripting.internals.ScriptingOperationImpl
Contributing Component org.nuxeo.platform.TemplateSources.operations

JSON Definition

{
  "id" : "javascript.RenderPdf",
  "label" : "javascript.RenderPdf",
  "category" : "javascript",
  "requires" : null,
  "description" : "Render a document with a given template and converts it to PDF.",
  "url" : "javascript.RenderPdf",
  "signature" : [ "document", "blob" ],
  "params" : [ {
    "name" : "templateName",
    "description" : null,
    "type" : "string",
    "required" : false,
    "widget" : null,
    "order" : 0,
    "values" : [ ]
  }, {
    "name" : "attach",
    "description" : null,
    "type" : "boolean",
    "required" : false,
    "widget" : null,
    "order" : 0,
    "values" : [ ]
  }, {
    "name" : "templateData",
    "description" : null,
    "type" : "string",
    "required" : false,
    "widget" : null,
    "order" : 0,
    "values" : [ ]
  } ]
}